/***************************************************
//Filename:     meteorcfg.h                       //
//Version:	    V1.0							  //
//Released:		2008-11-14 15:00		          //
//Author:		Hua Weidong						  //
//Description:  for AWS-II.

//         READ ME
**2012-03-12 09:00
Modifier: suky
1. V1.1 is released.
2. change default SOLAR_TEMPERATURE_SAMPLE_TIMES from 20 to 30

**2008-11-14 15:00
Creator: Hua Weidong
1.Version V1.0 is released.


****************************************************/
#ifndef ___METEORCFG_H___
#define ___METEORCFG_H___

#define MAX_NUM_BUCKET_PRECIPITATION	3
#define MAX_NUM_WEIGH_PRECIPITATION		3
#define MAX_NUM_AIR_TEMPERATURE			3
#define MAX_NUM_WET_TEMPERATURE			1
#define	MAX_NUM_DEW_POINT				1
#define MAX_NUM_FAN_SPEED				3
#define MAX_NUM_GS_TEMPERATURE			1
#define MAX_NUM_IR_TEMPERATURE			1
#define	MAX_NUM_GRASS_TEMPERATURE		1
#define	MAX_NUM_SOIL_TEMPERATURE		8
#define	MAX_NUM_SOIL_MOISTURE			8
#define MAX_NUM_WIND_SPEED				3
#define	MAX_NUM_WIND_DIRECTION			3
#define	MAX_NUM_STATION_BARO			1
#define	MAX_NUM_SEA_SURFACE_PRESSURE	1
#define	MAX_NUM_HUMIDITY				3

#define	MAX_NUM_CAPACITANCE_HUMIDITY	1

#define	MAX_NUM_EVAPORATION				1
#define	MAX_NUM_VISIBILITY				1
#define	MAX_NUM_CLOUD_CEILING			1

#define MAX_NUM_GLOBAL_RADIATION        1  //sensorinfo.h, sensorinfo.c: sensorList, sensorIDListRadiation
											//parameter.c: scdGlobalRadiation, rsdGlobalRadiation, paramSensorStatesEx
											//qcparam.c: mdGlobalRadiation
											//simulate.c 
											//modified by Tang Yong at 2012-11-07 14:10
#define	MAX_NUM_NET_RADIATION			1
#define	MAX_NUM_DIRECT_RADIATION		2//modified by Tang Yong at 2013-11-20 08:20
#define	MAX_NUM_HORIZ_DIRECT_RADIATION	2//modified by Tang Yong at 2013-11-20 08:20
#define	MAX_NUM_SCATTER_RADIATION		1
#define	MAX_NUM_REFLECT_RADIATION		1
#define	MAX_NUM_ULTRAVIOLET_RADIATION	1
#define	MAX_NUM_ULTRAVIOLET_A_RADIATION	1
#define	MAX_NUM_ULTRAVIOLET_B_RADIATION	1
#define	MAX_NUM_ATMOSPHERE_RADIATION	1
#define	MAX_NUM_TERRESTRIAL_LONGWAVE_RADIATION	1
#define MAX_NUM_ATMOSPHERE_TEMPERATURE	1
#define MAX_NUM_TERRESTRIAL_LONGWAVE_TEMPERATURE	1	//added by Tang Yong at 2012-10-11 21:50
#define	MAX_NUM_PHOTOSYNTHESIS_RADIATION	1			//added by Tang Yong at 2012-10-11 21:50
#define	MAX_NUM_SUNSHINE_DURATION       2				//modified by Tang Yong at 2013-11-20 08:20
#define	MAX_NUM_ILLUMINANCE             1
#define MAX_NUM_AIR_ELECTRIC_FIELD      1

#define	AIR_TEMPERATURE_PRECISION	1

#define AIR_TEMPERATURE_SAMPLE_TIMES        6
#define WET_TEMPERATURE_SAMPLE_TIMES        6
#define DEW_POINT_SAMPLE_TIMES              6
#define GRASS_TEMPERATURE_SAMPLE_TIMES      30
#define GS_TEMPERATURE_SAMPLE_TIMES         30
#define IR_TEMPERATURE_SAMPLE_TIMES         30
#define SOIL_TEMPERATURE_SAMPLE_TIMES       30
#define STATION_BARO_SAMPLE_TIMES           6
#define SEA_SURFACE_PRESSURE_SAMPLE_TIMES   STATION_BARO_SAMPLE_TIMES
#define HUMIDITY_SAMPLE_TIMES               6

#define SOIL_MOISTURE_SAMPLE_TIMES			6
#define VISIBILITY_SAMPLE_TIMES				4
#define EVAPORATION_SAMPLE_TIMES			1
#define EVAPORATION_DEPTH_SAMPLE_TIMES		6
#define CLOUD_CEILING_SAMPLE_TIMES			6
#define BUCKET_PRECIPITATION_SAMPLE_TIMES	1
#define WEIGH_PRECIPITATION_SAMPLE_TIMES	1
#define WEIGH_FREQ_SAMPLE_TIMES				1
#define WEIGH_DEPTH_SAMPLE_TIMES			1
#define WEIGH_TEMPERATURE_SAMPLE_TIMES		30
#define FAN_SPEED_SAMPLE_TIMES				1
#define WIND_SPEED_SAMPLE_TIMES				60
#define WIND_DIRECTION_SAMPLE_TIMES			60

#define	GLOBAL_RADIATION_SAMPLE_TIMES       6
#define	NET_RADIATION_SAMPLE_TIMES          60

#define	HORIZ_DIRECT_RADIATION_SSDSENSOR_SAMPLE_TIMES	12
#define	HORIZ_DIRECT_RADIATION_DRSENSOR_SAMPLE_TIMES	60
#define	HORIZ_DIRECT_RADIATION_MAX_SAMPLE_TIMES		60

#define	DIRECT_RADIATION_SSDSENSOR_SAMPLE_TIMES		12   //added by Tang Yong at 2013-11-15 09:20
#define	DIRECT_RADIATION_SENSOR_SAMPLE_TIMES		60   //added by Tang Yong at 2013-11-15 09:20
#define	DIRECT_RADIATION_MAX_SAMPLE_TIMES			60   //added by Tang Yong at 2013-11-15 09:20

#define	SUNSHINE_DURATION_DR_CALCULATED_TIMES		1   //added by Tang Yong at 2013-11-15 09:20
#define	SUNSHINE_DURATION_SENSOR_SAMPLE_TIMES		1   //added by Tang Yong at 2013-11-15 09:20
#define	SUNSHINE_DURATION_MAX_SAMPLE_TIMES			1   //added by Tang Yong at 2013-11-15 09:20
#define SUNSHINE_DURATION_MAX_SAMPLE_COUNT          6

#define	SCATTER_RADIATION_SAMPLE_TIMES                  60
#define	REFLECT_RADIATION_SAMPLE_TIMES                  60
#define	ULTRAVIOLET_RADIATION_SAMPLE_TIMES              60
#define	ATMOSPHERE_RADIATION_SAMPLE_TIMES               60
#define	ATMOSPHERE_TEMPERATURE_SAMPLE_TIMES             60
#define	TERRESTRIAL_LONGWAVE_RADIATION_SAMPLE_TIMES     60
#define	TERRESTRIAL_LONGWAVE_TEMPERATURE_SAMPLE_TIMES   60
#define	PHOTOSYNTHESIS_RADIATION_SAMPLE_TIMES           60
#define	ILLUMINANCE_SAMPLE_TIMES                        30
#define AIR_ELECTRIC_FIELD_SAMPLE_TIMES                 60
//#define AIR_ELECTRIC_FIELD_SAMPLE_TIMES		10
//#define MAX_NUM_AIR_ELECTRIC_FIELD_SAMPLE_TIMES	60 //lyf 2020-10

#define	MAX_NUM_GROUNDWATER_LEVEL					1
#define	MAX_NUM_CLOUD_HEIGHT						5
#define	MAX_NUM_CLOUD_TOTAL_AMOUNT					1
#define	MAX_NUM_CLOUD_LOW_AMOUNT					1
#define	MAX_NUM_WEATHER_PHENOMENA_MINUTE			4
#define	MAX_NUM_WEATHER_PHENOMENA_15MINUTE			4
#define	MAX_NUM_WEATHER_PHENOMENA_HOUR				4
#define	MAX_NUM_LIGHTEN_FREQUENCY					1
#define	MAX_NUM_FROZEN_SOIL_DEPTH					1
#define	MAX_NUM_FROZEN_RAIN							1
#define	MAX_NUM_SNOW_DEPTH							1
#define MAX_SNOW_DEPTH_SAMPLE_COUNT					10
#define	MAX_NUM_SNOW_PRESSURE						1
#define	MAX_NUM_WIRE_ICE_THICKNESS					1
#define	MAX_NUM_WIRE_ICE_DENSITY					1

#define	MAX_NUM_BUOY_ANGLE							1
#define	MAX_NUM_OCEAN_TEMPERATURE					1
#define	MAX_NUM_OCEAN_SALINITY						1
#define	MAX_NUM_OCEAN_CONDUCTANCE					1
#define	MAX_NUM_OCEAN_WAVE_HEIGHT					1
#define	MAX_NUM_OCEAN_WAVE_PERIOD					1
#define	MAX_NUM_OCEAN_WAVE_VELOCITY					1
#define	MAX_NUM_OCEAN_WAVE_DIRECTION				1
#define	MAX_NUM_OCEAN_TURBIDITY						1
#define	MAX_NUM_OCEAN_CHLOROPHYLL_CONCENTRATION		1

#define	GROUNDWATER_LEVEL_SAMPLE_TIMES				6
#define	CLOUD_HEIGHT_SAMPLE_TIMES					1		//1 hour
#define	CLOUD_TOTAL_AMOUNT_SAMPLE_TIMES				1		//1 hour
#define	CLOUD_LOW_AMOUNT_SAMPLE_TIMES				1		//1 hour
#define	WEATHER_PHENOMENA_MINUTE_SAMPLE_TIMES		1
#define	WEATHER_PHENOMENA_15MINUTE_SAMPLE_TIMES		1
#define	WEATHER_PHENOMENA_HOUR_SAMPLE_TIMES			1
#define	LIGHTEN_FREQUENCY_SAMPLE_TIMES				1      //?
#define	FROZEN_SOIL_DEPTH_SAMPLE_TIMES				1		//?
#define	SNOW_DEPTH_SAMPLE_TIMES						1 		//?
#define	SNOW_PRESSURE_SAMPLE_TIMES					1      //?
#define	FROZEN_RAIN_SAMPLE_TIMES					1 		//?
#define	WIRE_ICE_THICKNESS_SAMPLE_TIMES				1		//?
#define	WIRE_ICE_DENSITY_SAMPLE_TIMES				1		//?

#define	BUOY_ANGLE_SAMPLE_TIMES						60
#define	OCEAN_TEMPERATURE_SAMPLE_TIMES				30
#define	OCEAN_SALINITY_SAMPLE_TIMES					30
#define	OCEAN_CONDUCTANCE_SAMPLE_TIMES				30
#define	OCEAN_WAVE_HEIGHT_SAMPLE_TIMES				30
#define	OCEAN_WAVE_PERIOD_SAMPLE_TIMES				30
#define	OCEAN_WAVE_VELOCITY_SAMPLE_TIMES			60
#define	OCEAN_WAVE_DIRECTION_SAMPLE_TIMES			60
#define	OCEAN_TURBIDITY_SAMPLE_TIMES					30
#define	OCEAN_CHLOROPHYLL_CONCENTRATION_SAMPLE_TIMES	30

#define	MAX_NUM_SOLAR_TEMPERATURE	12
#define	MAX_NUM_SOLAR_VOLTAGE		12
#define	MAX_NUM_SOLAR_CURRENT		12

#define	SOLAR_TEMPERATURE_SAMPLE_TIMES	30
#define	SOLAR_VOLTAGE_SAMPLE_TIMES		20
#define	SOLAR_CURRENT_SAMPLE_TIMES		20

#if (MAX_NUM_SOLAR_VOLTAGE > MAX_NUM_SOLAR_CURRENT)
	#define	MAX_NUM_SOLAR_POWER	MAX_NUM_SOLAR_CURRENT
#else
	#define	MAX_NUM_SOLAR_POWER	MAX_NUM_SOLAR_VOLTAGE
#endif


//Change following define need change:
// qccfg.h
// simpleqc.h
// 
//
//#define	ULTRAVIOLET_COEFFICIENT			((float32)1000)	//((float32)250)


#endif
